<rich:page name="header" xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:a4j="http://richfaces.org/a4j" markupType="xhtml"
    contentType="text/html" theme="simple"
    width="1280" sidebarWidth="180"
    sidebarPosition="left">
    <head>
    	<title>知识管理系统</title>
		<link rel="shortcut icon" href="favicon.ico" />
		<link href="css/styles.css" rel="stylesheet" type="text/css" />
	</head>
		<f:facet name="header">
        <h:panelGroup>
            
	<div class="logo"></div>
	<h:form>
    <table width="100%"><tbody><tr>
                
                <td align="right">
                    <h:outputText value="欢迎您：" ></h:outputText>&#160;
                    <h:outputText value="#{authenticationBean.username}" ></h:outputText>&#160; 
                    <h:commandLink action="#{authenticationBean.logout}">安全退出</h:commandLink>
                </td>
            </tr>
            <tr><td colspan="2">
            	 
            		<rich:toolBar>
            	 		<rich:dropDownMenu>
                			<f:facet name="label"> 
                    			<h:panelGroup>
                       				 <h:graphicImage value="/images/icons/copy.gif" styleClass="pic"/>
                        			 <h:outputText value="文件"/>
                    			</h:panelGroup>
                			</f:facet>
                				<rich:menuItem submitMode="ajax" value="新建"
                    				action="#{menu.doNew}" icon="/images/icons/create_doc.gif">
                				</rich:menuItem>
                				<rich:menuItem submitMode="ajax" value="打开"
                    			action="#{menu.doOpen}" icon="/images/icons/open.gif" />
                			<rich:menuGroup value="Save As...">
                    				<rich:menuItem submitMode="ajax" value="保存" 
                        			action="#{menu.doSave}" icon="/images/icons/save.gif" />
                    		<rich:menuItem submitMode="ajax" value="保存所有"
                        			action="#{menu.doSaveAll}">
                        	<f:facet name="icon">
                            	<h:graphicImage value="/images/icons/save_all.gif" />
                        	</f:facet>
                    	</rich:menuItem>
                	</rich:menuGroup>
                		<rich:menuItem submitMode="ajax" value="关闭"
                    		action="#{menu.doClose}" />
                		<rich:menuSeparator id="menuSeparator11" />
                		<rich:menuItem submitMode="ajax" value="Exit"
                    		action="#{menu.doExit}" />

            	</rich:dropDownMenu>
            	</rich:toolBar>
			
        
		</td>
            </tr>
            </tbody></table>
            </h:form>
        </h:panelGroup>
         
    </f:facet>
    <f:facet name="footer">
        <h:outputText
            value="Copyright (c) 2010 IT行者工作室. All rights reserved. KMS version" />
    </f:facet>
    <rich:tabPanel headerAlignment="right" switchType="client" height="600px">
    <rich:tab label=" 桌   面  ">
    	<rich:layout>
       
        <rich:layoutPanel position="left"  width="200px">
         	  <rich:panel> 
         	  <f:facet name="header">文件结构</f:facet>
            	<ui:include src="tree.xhtml" style="padding:3px;"  width="200px" height="600px" />
            
              </rich:panel> 
        </rich:layoutPanel>
        <rich:layoutPanel position="right" style="padding:3px;" width="940px" >
            <rich:panel> 
             <f:facet name="header">具体内容</f:facet>
            <ui:include src="addDocument.xhtml" />
              </rich:panel> 
        </rich:layoutPanel>
       
    </rich:layout>
    </rich:tab>
    <rich:tab label=" 检   索  ">
        <ui:include src="tree.xhtml" />
    </rich:tab>
    </rich:tabPanel>
</rich:page>